package org.infodavid.common.persistence;


import org.infodavid.common.persistence.impl.ConnectionConfigurationImpl;

/**
 * The Class TestUtil.
 */
final class Util {

	/**
	 * The Constructor.
	 */
	private Util() {
		super();
	}

	/**
	 * Builds the test configuration.
	 * @return the connection configuration
	 * @throws Exception the exception
	 */
	public static IConnectionConfiguration buildTestConfiguration() throws Exception {
		final IConnectionConfiguration conf = new ConnectionConfigurationImpl();

		conf.setJdbcDriver("org.hsqldb.jdbcDriver");
		conf.setStdConnectionString("jdbc:hsqldb:mem:MyAlternativeDataBase");
		conf.setUser("sa");
		conf.setPassword("");

		return conf;
	}

}
